<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <th:block th:include="include/include :: header('消息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>消息类型：</label>
                                <select name="msgType" th:with="type=${@dict.getType('message_type')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}"></option>
                                </select>
                            </li>
                            <li>
                                <label>消息标题：</label>
                                <input type="text" name="msgTitle"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.addTab()">
                    <i class="fa fa-plus"></i> 新增
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include/include :: footer" />
    <script th:inline="javascript">
    	/*<![CDATA[*/
            var editFlag = [[${@permission.hasPermi('msg_edit')}]];
            var deleteFlag = [[${@permission.hasPermi('msg_del')}]];
            var msgTypeDatas = [[${@dict.getType('message_type')}]];
            var msgStatusDatas = [[${@dict.getType('msg_status')}]];
            var sendTypeDatas = [[${@dict.getType('msg_channel')}]];
            var rangeTypeDatas = [[${@dict.getType('msg_receive_range')}]];
        /*]]>*/
    </script>
    <script th:src="@{/pages/msg/messages/messagesList.js}"></script>
</body>
</html>